package basic;

public class phone {
    String phoneName;
    String phoneColor;
    String who;
    String triageName;
    int price;
    public void call(){
        System.out.println(who+"利用"+phoneColor+"的"+phoneName+"给"+triageName+"打电话！");
    }
    public void goodPhone(){
        System.out.printf("%s是一款很棒的手机！\n售价只需：%d%n", this.phoneName, this.price);
    }
    //将对象作为方法的参数
    public void method(phone meizu){
        System.out.println(who+"利用"+phoneColor+"的"+phoneName+"给"+triageName+"打电话！");
        System.out.printf("%s是一款很棒的手机！\n售价只需：%d%n", this.phoneName, this.price);

    }
}
